simplifying Algebraic expressions